package com.foryou.system.modules.wx.service.impl;

import com.foryou.system.modules.wx.dao.PlaceTypeDao;
import com.foryou.system.modules.wx.entity.PlaceTypeEntity;
import com.foryou.system.modules.wx.service.PlaceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Lee.
 */
@Service
public class PlaceTypeServiceImpl implements PlaceTypeService {

    @Autowired
    private PlaceTypeDao placeTypeDao;


    @Override
    public List<PlaceTypeEntity> queryList(Map<String, Object> map) {
        return placeTypeDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return placeTypeDao.queryTotal(map);
    }

    @Override
    public int update(Map<String, Object> params) {
        return placeTypeDao.update(params);
    }

    @Override
    public int add(Map<String, Object> params) {
        return placeTypeDao.add(params);
    }

    @Override
    public PlaceTypeEntity queryTypeName(String name) {
        return placeTypeDao.queryTypeName(name);
    }

    @Override
    public List<PlaceTypeEntity> selectList() {
        return placeTypeDao.selectList();
    }

    @Override
    public PlaceTypeEntity getInfo(Long id) {
        return placeTypeDao.getInfo(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        placeTypeDao.deleteBatch(ids);
    }
}
